/**
 * Copyright (C) 2013 DaiKit.com - daikit4gxt-sample module (admin@daikit.com)
 *
 *         Project home : http://code.daikit.com/commons
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.daikit.daikit4gxtsample.shared.exception;



/**
 * Exception Error codes
 * 
 * @author tcaselli
 * @version $Revision$ Last modifier: $Author$ Last commit: $Date$
 */
@SuppressWarnings("javadoc")
public interface ErrorCodes
{

	interface Validation
	{
		interface Account
		{
			String EXCEPTION_CODE_USER_NOT_EXISTING = "exception_code_user_not_existing";
			String EXCEPTION_CODE_OLD_PASSWORD_NOT_VALID = "exception_code_old_password_not_valid";
			String EXCEPTION_CODE_NEW_PASSWORD_NOT_VALID = "exception_code_new_password_not_valid";
			String EXCEPTION_CODE_GIVEN_PASSWORDS_FOR_CREATION_NOT_SAME = "exception_code_given_passwords_for_creation_not_same";
			String EXCEPTION_CODE_IMAGE_DELETION_IMPOSSIBLE = "exception_code_image_deletion_impossible";

			String EXCEPTION_CODE_REGISTRATION_USER_ID_NOT_EXISTING = "exception_code_registration_user_id_not_existing";
			String EXCEPTION_CODE_REGISTRATION_USER_EMAIL_ALREADY_EXISTING = "exception_code_registration_user_email_already_existing";
			String EXCEPTION_CODE_REGISTRATION_ERROR_DURING_EMAIL_SENDING = "exception_code_registration_error_during_email_sending";
		}

		interface Page
		{
			String EXCEPTION_CODE_LAYOUT_EMPTY = "exception_code_layout_empty";
			String EXCEPTION_CODE_SITE_EMPTY = "exception_code_site_empty";
		}
	}

	interface DataIntegrity
	{

		interface Layout
		{
			String LAYOUT_HIERARCHY_INCONSISTENT = "layout_hierarchy_inconsistent";
		}

		interface WidgetDefinition
		{
			String WIDGET_BUILDER_ALREADY_REGISTERED_FOR_COMPONENT_NAME = "widget_builder_already_registered_for_component_name";
		}
	}
}
